package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface SensitiveService extends IService<AdSensitive> {
    //敏感词分页查询
    ResponseResult findListByQuery(SensitiveDTO dto);
    //添加敏感词
    ResponseResult insert(AdSensitive adSensitive);
    //敏感词修改
    ResponseResult update(AdSensitive adSensitive);
    //根据id删除敏感词
    ResponseResult delete(Integer id);
    //查询敏感词内容列表
    public ResponseResult<List<String>> selectAllSensitives();
}
